//
//  main.m
//  notificationDemo
//
//  Created by zhouxiaobo on 15/10/28.
//  Copyright © 2015年 mapath. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "BroadCast.h"
#import "Listener.h"

int main(int argc, const char * argv[]) {
    @autoreleasepool {
        Listener *l1 = [[Listener alloc]init]; //接受者1
        [l1 receiveBroadCast];
        
//        Listener *l2 = [[Listener alloc]init]; //接受者2
//        [l2 receiveBroadCast];
        
        BroadCast *ba = [BroadCast shardeBroadCast]; //发送广播
        //[ba sendMessage];
        
        [ba repeatSendMessage];
        
        [[NSRunLoop currentRunLoop] run];
        
    }
    return 0;
}
